/**
 * created by 乐哥哥, 2019/7/24
 * Copyright (c) 2019, 270628297@qq.com All Rights Reserved.
 * #                   *********                            #
 * #                  ************                          #
 * #                  *************                         #
 * #                 **  ***********                        #
 * #                ***  ****** *****                       #
 * #                *** *******   ****                      #
 * #               ***  ********** ****                     #
 * #              ****  *********** ****                    #
 * #            *****   ***********  *****                  #
 * #           ******   *** ********   *****                #
 * #           *****   ***   ********   ******              #
 * #          ******   ***  ***********   ******            #
 * #         ******   **** **************  ******           #
 * #        *******  ********************* *******          #
 * #        *******  ******************************         #
 * #       *******  ****** ***************** *******        #
 * #       *******  ****** ****** *********   ******        #
 * #       *******    **  ******   ******     ******        #
 * #       *******        ******    *****     *****         #
 * #        ******        *****     *****     ****          #
 * #         *****        ****      *****     ***           #
 * #          *****       ***        ***      *             #
 * #            **       ****        ****                   #
 */
package com.wyl.main.bean

import java.io.Serializable
import java.util.*

/**
 * 项目名称：SimpleClock
 * 创建人：乐哥哥
 * 创建时间：2019-07-24 11:16
 */
class AlarmData(time: Long? = null, calendar: Calendar? = null) : Serializable {

//    private var date: Date = Date(time)
//    private var timeLabel: String = "${date.hours}"
//    Calendar.get(Calendar.HOUR_OF_DAY)

    private lateinit var mCalendar: Calendar

    init {
        time?.let {
            mCalendar = Calendar.getInstance()
                .apply {
                    timeInMillis = time
                }
        }
        calendar?.let { mCalendar = it }
    }

    var timeLabel: String = "${mCalendar.get(Calendar.HOUR_OF_DAY)}:${mCalendar.get(Calendar.MINUTE)}"

}
